{literal}
<script type="text/javascript">
$(document).ready(function() {
	$("#{/literal}{$tree->id}{literal}").show().treeview({
		animated: "medium",
		persist: "cookie",
		unique: false,
		cookieId: "domfg-tree-{/literal}{$tree->id}{literal}"
	});
})
</script>
{/literal}
<ul id="{$tree->id}" class="fg_tree" style="display:none;">
{$list}
</ul>